package com.peycard.common;

import java.io.Serializable;

public class ReaderControlDTO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private long idReaderControl;
	private String brand;
	private String model;
	private String platform;
	private String username;
	private String saveData;
	private int isActive;

	public long getIdReaderControl() {
		return idReaderControl;
	}

	public void setIdReaderControl(long idReaderControl) {
		this.idReaderControl = idReaderControl;
	}

	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public String getModel() {
		return model;
	}

	public void setModel(String model) {
		this.model = model;
	}

	public String getPlatform() {
		return platform;
	}

	public void setPlatform(String platform) {
		this.platform = platform;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getSaveData() {
		return saveData;
	}

	public void setSaveData(String saveData) {
		this.saveData = saveData;
	}

	public int getIsActive() {
		return isActive;
	}

	public void setIsActive(int isActive) {
		this.isActive = isActive;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((brand == null) ? 0 : brand.hashCode());
		result = prime * result
				+ (int) (idReaderControl ^ (idReaderControl >>> 32));
		result = prime * result + isActive;
		result = prime * result + ((model == null) ? 0 : model.hashCode());
		result = prime * result
				+ ((platform == null) ? 0 : platform.hashCode());
		result = prime * result
				+ ((saveData == null) ? 0 : saveData.hashCode());
		result = prime * result
				+ ((username == null) ? 0 : username.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ReaderControlDTO other = (ReaderControlDTO) obj;
		if (brand == null) {
			if (other.brand != null)
				return false;
		} else if (!brand.equals(other.brand))
			return false;
		if (idReaderControl != other.idReaderControl)
			return false;
		if (isActive != other.isActive)
			return false;
		if (model == null) {
			if (other.model != null)
				return false;
		} else if (!model.equals(other.model))
			return false;
		if (platform == null) {
			if (other.platform != null)
				return false;
		} else if (!platform.equals(other.platform))
			return false;
		if (saveData == null) {
			if (other.saveData != null)
				return false;
		} else if (!saveData.equals(other.saveData))
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ReaderControlDTO [idReaderControl=" + idReaderControl
				+ ", brand=" + brand + ", model=" + model + ", platform="
				+ platform + ", username=" + username + ", saveData="
				+ saveData + ", isActive=" + isActive + "]";
	}

}
